package com.ym521.simple

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ListView
import androidx.recyclerview.widget.RecyclerView
import com.ym521.skeleton.Skeleton
import com.ym521.skeleton.core.GridViewSkeletonScreen
import com.ym521.skeleton.core.ListViewSkeletonScreen
import com.ym521.skeleton.core.RecyclerViewSkeletonScreen
import com.ym521.skeleton.core.ViewSkeletonScreen

class ListViewSkeletonActivity : AppCompatActivity() {


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_list_view_skeleton)

        Skeleton.bind(findViewById<ListView>(R.id.lvView))
            .load(R.layout.skeleton_view_item)
            .angle(20)
            .duration(1000)
            .count(10)
            .color(R.color.white)
            .shimmer(true)
            .show()
            .hide()




    }
}